/**
 * 命令注册人口
 */
const vscode = require("vscode");
const { test, output, copyName, openQuickPick } = require("./baseCommand");
const { gitSkipFile, openGitBash, addToExclude } = require("./gitCommand");

function registerCommands(context) {
  // 注册命令（与 package.json 中的 command 字段对应）
  context.subscriptions.push(
    vscode.commands.registerCommand("wufei-extension.test", test),
    vscode.commands.registerCommand("wufei-extension.output", output),
    vscode.commands.registerCommand("wufei-extension.copyName", copyName),
    vscode.commands.registerCommand("wufei-extension.openQuickPick", openQuickPick),
    /* 注册git 相关命令 */
    vscode.commands.registerCommand("wufei-extension.gitSkipFile", gitSkipFile),
    vscode.commands.registerCommand("wufei-extension.openGitBash", openGitBash),
    vscode.commands.registerCommand("wufei-extension.addToExclude", addToExclude), // 添加到.git\info\exclude
  );
}

module.exports = { registerCommands };
